<?php
/* @var $this YeucaugiareController */
/* @var $model Yeucaugiare */
/* @var $form CActiveForm */
?>

<div class="form" >

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'yeucaugiare-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'HoTen'); ?>
		<?php echo $form->textField($model,'HoTen',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'HoTen'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DienThoai'); ?>
		<?php echo $form->textField($model,'DienThoai',array('size'=>12,'maxlength'=>12)); ?>
		<?php echo $form->error($model,'DienThoai'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Email'); ?>
		<?php echo $form->textField($model,'Email',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'Email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DiemDi'); ?>
		<?php echo $form->dropDownList($model,'DiemDi',
										array(
											  'TP.Hồ Chí Minh'=>'TP.Hồ Chí Minh',
											  'Hà Nội'=>'Hà Nội',
											  'Hải Phòng'=>'Hải Phòng',
											  'Đà Nẵng'=>'Đà Nẵng',
											  'Huế, Hội An'=> 'Huế, Hội An',
											  'Phú Quốc'=> 'Phú Quốc',
											  'Vinh'=> 'Vinh',
											  'Buôn Mê Thuộc'=> 'Buôn Mê Thuộc',
											  'Quy Nhơn'=> 'Quy Nhơn',
											  'Nha Trang'=> 'Nha Trang',
											
											  ), 
										array('options'=>array('TP.Hồ Chí Minh'=>array('selected'=>true)))
                                        ); 
		?>
		<?php echo $form->error($model,'DiemDi'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DiemDen'); ?>
		<?php echo $form->dropDownList($model,'DiemDen',
										array(
											  'TP.Hồ Chí Minh'=>'TP.Hồ Chí Minh',
											  'Hà Nội'=>'Hà Nội',
											  'Hải Phòng'=>'Hải Phòng',
											  'Đà Nẵng'=>'Đà Nẵng',
											  'Huế, Hội An'=> 'Huế, Hội An',
											  'Phú Quốc'=> 'Phú Quốc',
											  'Vinh'=> 'Vinh',
											  'Buôn Mê Thuộc'=> 'Buôn Mê Thuộc',
											  'Quy Nhơn'=> 'Quy Nhơn',
											  'Nha Trang'=> 'Nha Trang',
											
											  ), 
										array('options'=>array('Hà Nội'=>array('selected'=>true)))
                                        ); 
		?>
		<?php echo $form->error($model,'DiemDen'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SoLuong'); ?>
		<?php echo $form->dropDownList($model,'SoLuong',
										array(1=>'1',2=>'2',3=>'3',4=>'4',5=>'5',6=>'6',7=>'7',8=>'8',9=>'9',10=>'10','>10'), 
										array('options'=>array('1'=>array('selected'=>true)))); 
		?>
		<?php echo $form->error($model,'SoLuong'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TrangThai'); ?>
		<?php echo $form->dropDownList($model,'TrangThai',
										array('1'=>'Một chiều',
											  '2'=>'Khứ hồi'), 
										array('options'=>array('1'=>array('selected'=>true)))); 
		?>
		<?php echo $form->error($model,'TrangThai'); ?>
	</div>
	<div class="row">
	<label>Ngày đi từ:</label>
	<?php
	$this->widget('zii.widgets.jui.CJuiDatePicker',array(
	    'name'=>'NgayDi',
	    'model'=>$model,
        'attribute'=>'NgayDi',
	    // additional javascript options for the date picker plugin
	    'options'=>array(
            'minDate'=>0,
	        'showAnim'=>'clip',
	        'dateFormat'=>'yy-mm-dd',//'slide','fold','slideDown','fadeIn','blind','bounce','clip','drop'
	    ),
	    'htmlOptions'=>array(
	        'style'=>'height:20px;',
	    ),
	));
	?>
    <label>Đến</label>
	<?php
	$this->widget('zii.widgets.jui.CJuiDatePicker',array(
	    'name'=>'NgayDi2',
	    'model'=>$model,
        'attribute'=>'NgayDi2',
	    // additional javascript options for the date picker plugin
	    'options'=>array(
            'minDate'=>0,
	        'showAnim'=>'clip',
	        'dateFormat'=>'yy-mm-dd',//'slide','fold','slideDown','fadeIn','blind','bounce','clip','drop'
	    ),
	    'htmlOptions'=>array(
	        'style'=>'height:20px;',
	    ),
	));
	?>
	
	</div>
	<div class="row">
	<label>Ngày về từ:</label>
	<?php
	$this->widget('zii.widgets.jui.CJuiDatePicker',array(
	    'name'=>'NgayVe',
	    'model'=>$model,
        'attribute'=>'NgayVe',
	    // additional javascript options for the date picker plugin
	    'options'=>array(
            'minDate'=>0,
	        'showAnim'=>'clip',
	        'dateFormat'=>'yy-mm-dd',//'slide','fold','slideDown','fadeIn','blind','bounce','clip','drop'
	    ),
	    'htmlOptions'=>array(
	        'style'=>'height:20px;',
	    ),
	));
    ?>
    <label>Đến</label>
	<?php
	$this->widget('zii.widgets.jui.CJuiDatePicker',array(
	    'name'=>'NgayVe2',
	    'model'=>$model,
        'attribute'=>'NgayVe2',
	    // additional javascript options for the date picker plugin
	    'options'=>array(
            'minDate'=>0,
	        'showAnim'=>'clip',
	        'dateFormat'=>'yy-mm-dd',//'slide','fold','slideDown','fadeIn','blind','bounce','clip','drop'
	    ),
	    'htmlOptions'=>array(
	        'style'=>'height:20px;',
	    ),
	));
	?>
	
	</div>
    
	<div class="row">
		<?php echo $form->labelEx($model,'VietNam_AirLine'); ?>
		<?php echo $form->checkBox($model,'VietNam_AirLine', array('value'=>1, 'uncheckValue'=>0), array('checked'=>'checked')); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Jetstar'); ?>
		<?php echo $form->checkBox($model,'Jetstar', array('value'=>1, 'uncheckValue'=>0), array('checked'=>'checked')); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Vietjet_Air'); ?>
        <?php echo $form->checkBox($model,'Vietjet_Air', array('value'=>1, 'uncheckValue'=>0), array('checked'=>'checked')); ?>
	</div>
	

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Yêu cầu' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->